/**
 * author:Administrator
 * date:2015/8/19
 * desc:TODO
 */
// register center in host
// curl "localhost:8080?order=1&ip=22.22" 引号不能丢,不然命令行会错误理解&
var http = require('http');
var url = require('url');
var querystring = require('querystring');

var cluster_node_number = 3;
var cluster_ip = [];

var server = http.createServer(function(req, res) {
    console.log('--request--');
    var reqUrl = url.parse(req.url);
    console.log(reqUrl);
    var qs = querystring.parse(reqUrl.query);
    console.log(qs);
    res.writeHead(200, {
        'Content-type': 'text/plain'
    });
    res.end('Hello, world\n');
});
server.listen(8080);
console.log('server start...');